package com.tdkj.model.risevalue;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

@Entity
@Table(name = "risevalue_service_buy_log")
public class BeanServiceBuyLog extends BaseEntity implements java.io.Serializable {

	private BeanServiceCustom custom;
	private Timestamp buyTime;
	private BeanUser user;

	@ManyToOne(fetch = FetchType.LAZY, cascade={CascadeType.REFRESH})
	@JoinColumn(name = "custom_id")
	public BeanServiceCustom getCustom() {
		return this.custom;
	}

	public void setCustom(BeanServiceCustom custom) {
		this.custom = custom;
	}

	public Timestamp getBuyTime() {
		return buyTime;
	}

	public void setBuyTime(Timestamp buyTime) {
		this.buyTime = buyTime;
	}

	@ManyToOne(fetch = FetchType.LAZY, cascade={CascadeType.REFRESH})
	@JoinColumn(name = "user_id")
	public BeanUser getUser() {
		return user;
	}

	public void setUser(BeanUser user) {
		this.user = user;
	}

}